UK gears up to produce rare earth magnets needed for electric cars