Synthesis of fullerene derivatives