Vibrational excitation of N2 by resonance scattering of electrons