Surface-Induced Structural Transformations In Titanium Nanowires