Internal design of endohedral metallofullerenes toward bulk and surface single molecule magnetism