Magnetic nanoparticles as building blocks for high-performance magnetic materials