Spectra of trapped electrons in irradiated rigid media