OPTIMIZATION BASED DYNAMIC VOLTAGE SUPPORT OF MICROGRIDS USING ENERGY