A new implementation of PI controller for quasi-resonant converters