Quantifying demand flexibility of power-to-heat and thermal energy storage in the control of building heating systems. (1st January 2018)