Towards safe lithiumsulfur batteries from liquid-state electrolyte to solid-state electrolyte