Deposition of CdS and CuCdS2 compound semiconductor thin films and their characterization for device application