Optimization of a Bentonite-Based Heterogeneous Composite for Thermal Energy Storage