Failure mechanism of lithium iron phosphate battery