Kinetic stability of metal–organic frameworks for corrosive and coordinating gas capture