Variation of output power and capacitor voltage with dimming