Cohesive properties of ionic crystals