Extensive N-methylation of chitosan: evaluating the effects of the reaction conditions by using response surface methodology