Advances and trends of energy storage technology in microgrid