Electromagnetic Characterization of Inhomogeneous Media