Highly dispersed β-NiS nanoparticles in porous carbon matrices by a template metal–organic framework method for lithium-ion cathode