Metal-organic framework as a template for porous carbon synthesis.