On the resonant properties of the THz metal-dielectric waveguide impedance