Reversible solid oxide cell systems for integration with natural gas pipeline and carbon capture infrastructure for grid energy management