Improved optical properties of CdS quantum dots by ligand exchange