A student has a sample of an unknown inorganic compound that contains only carbon, oxygen, and nitrogen. They perform a combustion analysis on a 0.230 g sample of the compound, which yields 0.535 g of CO2 and 0.184 g of H2O. Additionally, when the compound is analyzed using a mass spectrometer, the mass spectrum shows a molecular ion peak at m/z = 42. Determine the empirical and molecular formulas of this compound.