Evaluation of the field coupling to a line of finite length: a comparison between the dual integral equation approach and the moment method