Reducing the calculation workload of the Green function for electromagnetic scattering in a Schwarzschild gravitational field