A general approach to the stereoselective synthesis of spiroketals. A total synthesis of the pheromones of the olive fruit fly and related compounds