A new design technique for non-homogeneous media filters