Text this: Boundary matching techniques for Terahertz lossy guiding Structures