Friction in transition metal-refractory compound pairs