Insights on carbon formation during methane pyrolysis