Processing and optical properties of spin-coated polystyrene films containing CdS nanoparticles