Computer simulation of the energy gap in ZnO- and TiO2-based semiconductor photocatalysts