Case study on the impact of cogeneration and thermal storage on the flexibility of the power system