Synthesis and characterization of hierarchically porous metal, metal oxide, and carbon monoliths with highly ordered nanostructure