Suppose you have a plane electromagnetic wave that crosses a medium with index of refraction $n$ with equation:$$e^{i\omega(t-\frac{nx}{c})}$$ Where $c$ is the speed of light.
What's the effect of changing $n$ by $n-ik$,$i=\sqrt{-1}$.
What does k physically represents?