Controlled Demolition of Metal-Organic Frameworks by Acid Gases and Reconstruction into New Functional Materials