Electrochemical model based fault diagnosis of lithium ion battery