First-principle calculations of the electronic and optical properties of Tm-doped anatase titanium dioxide