Gas evolution studies for structural characterization of hydrogenated carbon nitride samples