Electronic structure and photocatalytic properties of copper-doped CaTiO3