Numerical modelling of electromagnetic sources by integral formulation