Text this: Design of a current mode PI controller for a single-phase PWM inverter