Process synthesis and optimization for the production of carbon nanostructures