How would you modify a PWM signal to achieve a smoother transition between duty cycle values for applications like LED dimming or motor speed control