Kinetic and thermodynamic study of methylene blue adsorption onto chitosan: insights about metachromasy occurrence on wastewater remediation