What value is primarily used to determine which port becomes the root port on each nonroot switch in a spanning-tree topology?