Generalized Sturm expansions of the Coulomb Green’s function and two-photon Gordon formulas