Charge Distribution and Electric Field Gradients in Ionic Crystals