Thermal degradation of cellulose and its phosphorylated products in air and nitrogen