How does nitrogen change to nitrogen compounds?