On the stability of rotational discontinuities and intermediate shocks