Rational Synthesis of Nanomagnets and Magnetic Nanocomposites for Permanent Magnet Applications