Global stable virtual synchronous machine for weak grid-connected microgrid