Adaptive Charging of Lead Acid batteries for Maximum Efficiency and Cycle Lifetime