Generalization of the Gibbs-Thomson equation