The stabilities and electronic structures of single-layer bismuth oxyhalides for photocatalytic water splitting.