A general strategy for metal compound encapsulated into network-structured carbon as fast-charging alkali-metal ion battery anode