Ucore buys rights to rare earths technology