An Instrument for the Characterization of Voltage and Temperature Profile in NiCd nad NiMH Batteries