Maximum energy of lead-acid battery