Text this: Multilevel D-STATCOM for sag and swell mitigation using modulation index control