Microelectromagnetic matrix for local assembling of magnetic nanoparticles