Fast and reversible migrations of N,S-centered groups around the perimeter of cyclopropene and cycloheptatriene rings