Embedded density functional approach for calculations of adsorption on ionic crystals