Phase change material with flexible crosslinking for thermal energy storage