Unified method for determining the complex propagation constant of reflecting and nonreflecting transmission lines