Model Predictive Control-Based Optimal Operations of District Heating System With Thermal Energy Storage and Flexible Loads