Toward a molecular design of porous carbon materials