Vapor-phase self-assembly of carbon nanomaterials