Nanowire structures for solar water splitting