Synthesis and characterization of electrical conducting nanoporous carbon structures