An equivalent two-port model for a transmission line of finite length accounting for high-frequency effects