Self-calibration technique for characterization of integrated THz waveguides