Near-infrared diode laser spectroscopy of the nitrogen molecule in Rydberg states