Electrochemical behavior of porous carbons