Powder metallurgy of rare earth permanent magnets