Structural study of functional hierarchical porous carbon synthesized from metal-organic framework template