Adsorption of nitrogen by porous and non-porous carbons