Lithium, copper, cobalt, and nickel enjoyed a surge in demand as interest in electric cars increased.