Purification or separation of fullerenes or nanotubes