Effect of surface chemistry on electrochemical storage of hydrogen in porous carbon materials