2-Acyl(aroyl)-1,1,3,3-tetracyanopropenides: III. Heterocyclization by the action of hydrogen halides