Magnetic coupling of Gd3N@C80 endohedral fullerenes to a substrate.