Maximizing charging efficiency of lithium-ion and lead-acid batteries using optimal control theory | IEEE Conference Publication | IEEE Xplore