The Control Stage of a Modular Multilevel Converter-based Arbitrary Wave shape Generator for Dielectric Testing of High Voltage Grid Assets