Rearrangements of polyaza(oxa-,thia-)heterocyclic carbanions in organic synthesis