Path Dependence of Battery Degradation