Adsorption of Metal Ions on Nitrogen Surface Functional Groups in Activated Carbons