The preparation of titania nanotubes and its application in flexible dye-sensitized solar cells