The Taylor relaxed state in tokamaks and the sawtooth collapse