The thermomigration of liquid droplets through grain boundaries in solids