Photoelectrochemistry of n-type bismuth oxyiodide