Studies of the 3-aza-Cope rearrangement and aza-annulation for the construction of nitrogen heterocycles