A new approach to calculate the excitation of atmospheric gases by auroral electron impact