Decomposition of hydrocarbons to hydrogen and carbon