From colloidal Co/CoO core/shell nanoparticles to arrays of metallic nanomagnets: surface modification and magnetic properties.