Optimized design of thermal batteries to enhance the performance of space conditioning systems