Magnetism of nanoparticles: Effect of the organic coating