Characterisation of magnetic field measuring instruments in presence of nonsinusoidalmagnetic fields