Preparation of powders with potential as high-performance permanent magnets