Studies of the kinetics of the vibrational and rotational distribution functions of nitrogen excited by a pulsed discharge