Rearrangements of Dewar 4-pyrimidinones and 4-methoxy-2-azetidinones: reactions through azetidinyl and acyl cations