Decarbonized hydrogen and electricity from natural gas