Heat transfer with heating and cooling granular materials in a scraped-surface homogeniser