Voltage-dependent reconstruction of layered Bi2WO6 and Bi2MoO6 photocatalysts and its influence on charge separation for water splitting