Anatase TiO2 nanotubes as photoanode for dye-sensitized solar cells