An assessment of multiple-scattering effects in Auger-electron diffraction and photoelectron diffraction