Calculation of commutation spikes and harmonics on offshore platforms | Synapse