design and construction of an automatic switch-off battery charger