Phenomenological viability of neutralino dark matter in the next-to-minimal supersymmetric standard model