A Hybrid Active Filter for Operation with Harmonically Unbalanced Voltages and Currents