Controlling Properties and Cytotoxicity of Chitosan Nanocapsules by Chemical Grafting