Modulating supramolecular binding of carbon dioxide in a redox-active porous metal-organic framework