Text this: On the propagation of electromagnetic waves in an inhomogeneous medium