Main structure and working principle of energy storage system