Control, Modulation, And Protection Strategies For Modular Multilevel Converters In Smart Ac And Dc Grids Applications