Rare-earth elements and semiconductors are essential raw materials for the development of modern science and technology.…