Performance analysis of slope and frequency modulated carrier PWM methods for grid connected converters