Variation of γ-ray spectra with the energy of channeled electrons