Technique for computing the response of a line of finite length excited by HF electromagnetic fields