Consensus Control For Power Sharing In An Islanded Microgrid Using An Adaptive Virtual Impedance Approach