Experimental and theoretical study of the electronic structure of ion-beam-synthesized substoichiometric titanium carbides