An experimental and mechanistic study of the reactions of COF2 with H2 and with CO