Analysis and minimization of output current ripple for discontinuous pulse-width modulation techniques in three-phase inverters