Palladium(II) catalyzed cyclization of alkynoic acids