Developing A Medium-Voltage Three-Phase Current Compensator Using Modular Switching Positions