Microstructure-dependent photoelectrochemical and photocatalytic properties of BiOI