Impact of thermal masses on the peak load in district heating systems