Electromagnetic parameter retrieval from inhomogeneous metamaterials.