THERMAL MANAGEMENT OF A BATTERY ENERGY STORAGE SYSTEM