Thermal degradation of cellulosic materials