Photoelectrochemical water treatment using solar cells and Earth abundant materials