Cu-mediated solid-state reaction in a post-functionalized metal-organic framework