Exact Solution for the Scattering of Electromagnetic Waves from Bodies of Arbitrary Shape. III. Obstacles with Arbitrary Electromagnetic Properties