A Green's function-based method for the transient analysis of transmission lines