The effects of O deficiency on the electronic structure of rutile TiO2