Shortcomings of separable representations of the Green function in multiple-scattering theory for photoelectron diffraction and extended X-ray absorption fine structure