CuInSe2 films for photovoltaics and photoelectrochemistry