Optical properties of CdS nanoclusters: effects of size, stoichiometry and alloying with Ag2S