Sampled-Data Observer for Estimating the State of Charge, State of Health, and Temperature of Batteries