Millimeter wave spectroscopy of transient species in RF and DC discharges