Text this: Design of a prototype D-STATCOM using DSP controller for voltage sag mitigation