Effect of carbonization atmosphere on electrochemical properties of nitrogen-doped porous carbon