Resonant scattering of light by slowly fluctuating localized electrons