Optimizing the utilization of excess heat for district heating in a chipboard production plant