Hierarchical TiO2-based nanostructures for photoelectrochemical water splitting