Gadolinium nitride Gd3N in carbon cages: the influence of cluster size and bond strength.