Experimental and theoretical studies of the electron temperature in nitrogen afterglow