How to detect the internal resistance of lithium iron phosphate battery