The effect of the molecular weight of chitosan nanoparticles and its application on drug delivery