Electromagnetic scattering in dissipative materials