Gas exchange-driven carbothermal reduction for simultaneous lithium extraction from anode and cathode scraps