Improved performance of lithium-sulfur battery by a functional separator design