Hierarchical carbon nanocages as high-rate anodes for Li- and Na-ion batteries