Control techniques for active power filters