A comparative study of optical absorption and photocatalytic properties of nanocrystalline single-phase anatase and rutile TiO2 doped with transition metal cations