Synthesis of atomic and molecular endohedral fullerenes