Novel ring contractions and ring expansions of functionalized azaheterocycles.