Engineers now understand how complex carbon nanostructures form