China has toughened its rules on the export of rare earths, crucial materials for many modern technologies from smartphones to fighter jets.