Unifying capture, storage and discharge of thermal energy using miscibility gap alloys