The complex variable fast multipole boundary element method for the analysis of strongly inhomogeneous media