Stability of C0-semigroups and geometry of Banach spaces