Virtual Inertia Emulation In Islanded Microgrids With Energy Storage System