A new approach for the formation of fused cyclooctane or cyclohexane rings