Hybrid nanotubular structures for photoelectrocatalysis or energy storage devices