In the clean-energy future, every battery will have a passport