Chitosan-stabilized noble metal nanoparticles: study of their shape evolution and post-functionalization properties