Text this: Chitosan-functionalized Ag nanoparticles for degradation of methylene blue: effect of chitosan pre-treatment