Preparation and characterization of CuInSe2 and CdS films