How to control reactive power of lead-acid battery