Structural, optical and photoelectrochemical properties of CuIn3Se5