Accelerated hierarchical optimization method for emergency energy management of microgrids with energy storage systems