If \( \displaystyle \lim_{x \to 1} \dfrac{\sin\!\left(3x^{2}-4x+1\right)-x^{2}+1}{2x^{3}-7x^{2}+ax+b}=-2 \), then the value of \( (a-b) \) is equal to ____________.