Synthesis of bridgedhead azolo[3,2-a]pyrimidines and imidazo[2,1-b]thiazines through ring transformation of 2H-pyran-2-ones