Three-dimensional nanotube arrays for solar energy harvesting and production of solar fuels