Infrared spectroscopy of CO on NaCl(100) IV. Bandshape analysis