Synthesis of heterocyclic systems involving [3,3]-sigmatropic rearrangements