Molecular orbital and 1H nuclear magnetic resonance studies of the inversion potentials of thianthrene and thioxanthene