An integral method for the calculation of the reduction in interfacial free energy due to interfacial segregation