Cycloaddition of sulfonyl azides and cyanogen azide to enamines. Quantum-chemical calculations concerning the spontaneous rearrangement of the adduct into ring-contracted amidines