Determination of the degree of acetylation of chitin and chitosan by thermal analysis