Nonlinear Control of Voltage Source Inverters in Microgrids