Effect of architecture and doping on the photoelectrochemical properties of titania nanotubes