Charging principle of nickel-cadmium battery