Magnetic interactions: A tool to modify the magnetic properties of materials based on nanoparticles