Thomas Knox, I conte di Ranfurly