Efficient modeling of discontinuities and dispersive media in printed transmission lines