Stereochemical control in the synthesis of tetrahydrofurans by cyclisation of diols with phenylthio migration