Determination of the degree of acetylation of chitin and chitosan