Cluster surface states for TiO2, SrTiO3, and BaTiO3