Relaxation of interphase stresses on the later stages of the heterogeneous decomposition of solid solutions. I. Functional of the energy