Design of Inhomogeneous Slabs for Filtering Applications via Closed Form Solutions of the Reflection Coefficient