Battery cycle life study through relaxation and forecasting the lifetime via machine learning