Solid state flicker controller using a pulse width modulated AC-AC converter