Controlled Synthesis of Titanium Dioxide Nanocomposites with Different Structures and Morphologies