Solid-state phase change material energy storage principle and application