Fault Diagnosis of Overcharge and Overdischarge of Lithium Ion Batteries