Free energy of a nonuniform system i interfacial free energy