Removal of SO2 on a nanoporous photoelectrode with simultaneous H2 production.