Radiative opacities for carbon- and oxygen-rich mixtures