Devolatilization and oxidation of coal nitrogen