Understanding the role of thermal energy storage on district cooling performance