The effects of elastic backscattering on the Auger or X-ray photoelectron spectra of solids