An Improved Passivity-Based Control for Inverter-Based Microgrids