Batteries have quickly become the dominant market for lithium, driven by demand for electric vehicles.