Photoemission and STM study of the electronic structure of Nb-doped TiO2