Charging and discharging efficiency of energy storage