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