TiO2 nanotubes: Structure optimization for solar cells