Edge luminescence of excitons in ionic crystals