Reflection and transmission through a microstructured slab sandwiched by two half-spaces