Thermal conversion of core-shell metal-organic frameworks: a new method for selectively functionalized nanoporous hybrid carbon.