Tesla and other automakers are in a magnet race to build EVs without rare earth metals