The synthesis of chitosan-based silver nanoparticles and their antibacterial activity.