nitrogen compound metabolic process