Molecular mechanisms for the gas-phase conversion of intermediates during cellulose gasification under nitrogen and oxygen/nitrogen