SnO2 nanoarrays for energy storage and conversion