Seamless Grid-Following to Grid-Forming Transition of Inverters Supplying a Microgrid