Text this: Design and simulation of a distribution STATCOM considering voltage sag mitigation and harmonic elimination