Text this: Design of a 27-level cascaded converter as FACTS device for voltage sag mitigation