An optimization framework for the network design of advanced district thermal energy systems. (15th August 2022)