Data-driven early prediction and modeling of lithium-ion battery capacity degradation