Kinetics of the thermal degradation of chitosan