Modelling of electromagnetic interferences produced by a railgun