Electromagnetic wave propagation in a medium with defects