Theoretical studies on formation mechanisms of CO and CO2 in cellulose pyrolysis