Text this: State of charge and state of health estimation for lithium iron phosphate batteries