Effects of the CuS phase on the growth and properties of CuInS2 thin films