Formation of precipitates in doped ionic crystals: Evidence through the luminescence