PdI2-catalyzed synthesis of heterocycles