Stereoselective synthesis of the 6,7,6- and 6,7,7-ring systems of polycyclic ethers by 6-endo cyclization and ring expansion