Analysis of the effect of resistance increase on the capacity fade of lithium ion batteries