A Robust Charge/Discharge Monitor For Lead Acid Batteries