Exploiting Supramolecular Dynamics in Metal-Phenolic Networks to Generate Metal-Oxide and Metal-Carbon Networks.