Macrospin model of an assembly of magnetically coupled core-shell nanoparticles