Preparation of a porous Sn@C nanocomposite as a high-performance anode material for lithium-ion batteries.