Principle of repairing lead-acid battery after power failure