Electronic and optical properties of doped TiO2 by many-body perturbation theory