Photoelectrocatalysis in water treatment