Flatness-based adaptive fuzzy control for active power filters