Thermalization of fast nitrogen atoms in elastic and inelastic collisions with molecules of atmospheric gases