Stereochemically controlled competitive cyclisations with phenylthio migration in the synthesis of cyclic ethers