Transition from Islanded to Grid-Connected Mode of Microgrids with Voltage-Based Droop Control