Modeling the Li abundances of RGB and AGB stars with a new estimate for the 7 Be half-life