Sandwiched C@SnO2@C hollow nanostructures as an ultralong-lifespan high-rate anode material for lithium-ion and sodium-ion batteries