The development of nitrogen functionality in model chars during gasification in CO2 and O2