Breakdown of ionic crystals by electron avalanches