Synthesis of solar fuels by novel photoelectrocatalytic approach