Closing the Lithium-ion Battery Loop