Rising demand for rare earths is drawing global miners to Brazil, positioning it as a potential alternative to China's dominance.