Infrared Spectra of HCl and DCl in Solid Rare Gases. II. Polymers