Phase-change materials for thermal energy storage