Diffraction peaks in secondary-electron energy spectra