Infrared spectroscopy of solid CO-CO2 mixtures and layers