A study of the energy spectra of secondary ions from metal matrices