An Analytical Model of Duato's Fully-Adaptive Routing Algorithm in k-Ary n-Cubes