Text this: Machine learning for battery quality classification and lifetime prediction using formation data