Dyeing salt crystals for optical applications