Spectroscopic measurements on the laser emission from discharges in compounds of hydrogen, carbon, and nitrogen