Improved optical and structural properties of cadmium sulfide nanostructures for optoelectronic applications