Synthesis of tetrahydropyrans and related heterocycles via prins cyclization; extension to aza-prins cyclization