Electron confinement promoted the electric double layer effect of BiOI/β-Bi2O3 in photocatalytic water splitting.