Nanoporous hexagonal TiO2 superstructure as a multifunctional material for energy conversion and storage