Analysis of the chemical principle of lead-acid batteries