Thermal energy storage system using stearic acid as a phase change material