The use of an improved Eddington approximation to facilitate the calculation of photoionization in streamer discharges