The pure rotational spectra of TiO(X3Δ) and TiN(X2Σ