Active and passive filtering techniques for harmonic mitigation