Battery Intelligence: Diagnosis and Prognosis