Unification constraints in the next-to-minimal supersymmetric standard model