Stability of contact discontinuities for the nonisentropic Euler equations