Structure of nanoporous carbon materials for supercapacitors