Ligand and solvent effects on the absorption spectra of CdS magic-sized clusters.