The geometry of free-standing titania nanotubes as a critical factor controlling their optical and photoelectrochemical performance