Preparation and properties of CuInS2 thin films