Settlement games with rank-order payoffs and applications to sovereign debt restructuring