Predictive control of half-bridge single-phase active filter