for an endothermic reaction to be spontaneous delta g is equal to