Dependence of spectroscopic and electrical properties on the size of cadmium sulfide nanoparticles