Molecular effects in ion-induced secondary electron spectra