Ac light control with zero cross detection