The Jordan Canonical Forms of complex orthogonal and skew-symmetric matrices