Gibbs function continuation for linearly constrained multiphase equilibria