The Versatility of TiO2 Nanotubes As Platform to Construct Photocathode or Photoanode for Clean Energy Production