Rotational line strengths in the Lyman and Werner bands of H2