Voltage Sag Ride-Through and Harmonics Mitigation for Adjustable Speed Drives using Dual-Functional Hardware