Characterization of CuInS2 thin films for solar cells prepared by spray pyrolysis