Non-isothermal two-membrane reactors for reversible gas phase reactions