Formation of Titania Nanotubes and Applications for Dye-Sensitized Solar Cells