Rapid synthesis of FeS nanoparticles encapsulated with nanoporous graphitic shells for high performance sodium- and lithium-ion batteries