The rotational excitation of CO by H2