Rare earth metals are making headlines as demand rises for products from smartphones to wind turbines, and as governments seek secure supply.