Binding energies and sticking coefficients of H2 on crystalline and amorphous CO ice