Multifunctional structural composites for thermal energy storage