Fluorescence of rare-earth ions in dirty displacive ferroelectrics