A boundary element approach to the scattering from inhomogeneous dielectric bodies