Degree of deacetylation of chitosan by infrared spectroscopy and partial least squares.