Photoelectrochemically driven nanoparticulate semiconductors as nanobipolar electrodes for advanced water remediation