A comprehensive study of electronic and photocatalytic properties in monolayer, double-layer and bulk Bi2WO6.