Simulation-based RAM analysis of MMC STATCOM