Control of Power Inverters in Renewable Energy and Smart Grid Integration