Doping-template approach of porous-walled graphitic nanocages for superior performance anodes of lithium ion batteries