Adsorption on the surface of ionic crystals and the effect of applied electric field