Reflection and transmission of plane waves by a layer of compact inhomogeneities