Multifunctional polymer composites for thermal energy storage and thermal management