Stabilization by a diagonal matrix