The aza-Achmatowicz rearrangement: a route to useful building blocks for N-containing structures