Palladium-catalyzed approach to the synthesis of five-membered O-heterocycles