Manufacture of fertilizers and nitrogen compounds