Structural evolution of SnO2 nanostructure from core–shell faceted pyramids to nanorods and its gas-sensing properties