The degradation of cellulose in oxygen and nitrogen at high temperatures