The fate of nitrogen functionalities in coal during pyrolysis and combustion