Thermal rearrangement of divinylcyclopropane systems. Preparation of functionalized, stereochemically defined bicyclic and tricyclic products containing the bicyclo[3.2.1]octane skeleton