Implementation of frequency-modulated triangular carrier and slope PWM strategies for three-level NPC inverters