A series active power filter which compensates current harmonics and voltage unbalance simultaneously