Synergistic Recovery of Valuable Metals from Spent Nickel–Metal Hydride Batteries and Lithium-Ion Batteries