Sulfur–mesoporous carbon composites in conjunction with a novel ionic liquid electrolyte for lithium rechargeable batteries