Magnetic nanocomposites for magnetic refrigeration