Ultrathin undoped tetrahedral amorphous carbon films: The role of the underlying titanium layer on the electronic structure