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