The synthesis of 4-halotetrahydropyrans and 4-halo-5,6-dihydro-2H-pyrans via the lewis acid promoted cyclization of acetals of homoallylic and homopropargylic alcohols