Effect of the preparation conditions of a barium–tantalate photocatalyst on the overall photocatalytic splitting of H2O