Movable magnetic porous cores enclosed within carbon microcapsules: structure-controlled synthesis and promoted carbon-based applications.