Text this: Controlling distribution static compensator (D-Statcom) for voltage sag mitigation in distribution system