Phase-changing materials for thermal stabilization and thermal transport