Preparation of mesoporous carbon for improved-performance lithium-sulfur battery