Investigating high-performance sulfur–metal nanocomposites for lithium batteries