Specific adsorption of ions and charge distribution in an electrical double layer