Numerical Modelling of Electromagnetic Fields Generated by Electrostatic Discharges