On the molecular origin of supercapacitance in nanoporous carbon electrodes