Reactivity of π-equivalent medium-ring nitrogen heterocycles. Azocines and homoazocines