battery smelting process