Heat transfer in granular materials during mechanical mixing