Magnetic entropy change in core/shell and hollow nanoparticles