The Cartan–Dieudonné–Scherk theorems for complex S-orthogonal matrices