The rare earth industry is drawing supply chain lessons from the semiconductor shortage