Homogeneous acetylation of chitosan in ionic liquids