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