Small-Signal Analysis of single-phase and three-phase dc/ac and ac/dc PWM converters with the frequency-shift technique