A laboratory study of the infrared spectra of interstellar ices