Synthesis, structural and optical characterization of copper and rare earth doped CdS nanoparticles