Bohr-sommerfeld orbits in the moduli space of flat connections and the Verlinde dimension formula