The nuclear dimension of O-stable C⁎-algebras