Characterization of N2 and N2+H2 plasmas using infrared emission spectroscopy