Optimized district heating system for combined operation with seasonal heat storage