Tailoring magnetic properties of core/shell nanoparticles