A tool to calculate the impedance of transmission lines