Structural transformations in carbon nanotubes during thermal spray processing