Synergic Mechanisms on Carbon and Sulfur during the Selective Recovery of Valuable Metals from Spent Lithium-Ion Batteries