Grid-connected operation strategy of energy storage system