Synthesis of solar fuels by a novel photoelectrocatalytic approach