Construction of stable and globally convergent schemes for the matrix sign function