Thermal Management of Batteries Using a Hybrid Supercapacitor Architecture