Asymmetric synthesis of tetrahydrofurans and tetrahydropyrans with competitive [1,2]-phenylsulfanyl (PhS) migrations (I): thermodynamic control