The 2-ranks of connected compact Lie groups