Optical properties of CdS nanoparticles and the energy transfer from CdS nanoparticles to Rhodamine 6G