Mathematical modeling of cellulose conversion