Electrical and optical properties of single-phase CuInS2 films prepared using spray pyrolysis