Principal minors of complex symmetric and skew matrices