The condensation and vaporization behavior of H2O: CO ices and implications for interstellar grains and cometary activity