Heterogeneous Photocatalysis and Photoelectrocatalysis: From Unselective Abatement of Noxious Species to Selective Production of High-Value Chemicals.