Catalytic synthesis and purification of carbon nanotubes