A molecular orbital study of conformational preferences of the cyclopentadienyl ligand in titanium(IV) and titanium(III) complexes