Numerical calculation of grounding impedance of a linear electrode