Atomistic simulations and electronic structure of TiO2(100) surfaces