Flexible clustering of substations for accurate and rapid hybrid simulation of district heating | Synapse