Photoreduction of thiosulfate in semiconductor dispersions