THD reduction in onboard three phase AC voltage generation by means of an improved modulator