Nonlinear Control Design and Stability Analysis of Power Inverters in Modern Smart Grids