Doped nano-titania: theoretical insight into structure-property relationships