Trefftz type method for 2 D problems of electromagnetic scattering from inhomogeneous bodies .