Self-assembly of single-wall carbon nanotubes during the cooling process of hot carbon gas