Adaptive virtual inertia control of distributed generator for dynamic frequency support in microgrid