Effects of thickness on electronic structure of titanium thin films