One-dimensional hybrid nanostructures for heterogeneous photocatalysis and photoelectrocatalysis.