Comparative study on the effect of precursors on the morphology and electronic properties of CdS nanoparticles