Spectroellipsometric characterization of lanthanide-doped TiO2 films obtained via the sol-gel technique