Closing the loop on battery recycling