Analysis of current controllers for active power filters using selective harmonic compensation schemes