Implementation and experimental validation of a real-time PWM algorithm based on B-Spline carriers for three phase voltage source inverters