Mesoporous Co–N–C composite as a sulfur host for high-capacity and long-life lithium–sulfur batteries