Rare earth elements have become the latest flashpoint in the collision between geopolitics and markets.