Photosensitive nanoparticles of chitosan complex for controlled release of dye molecules