Fermi surface nesting function calculation