The optical properties of sprayed CdS thin films