Mechanism of carbon nanostructure synthesis in arc plasma