Auroral electron spectra in the atmosphere