Thermoelectric cooling system for batteries