An advanced Gibbs-Duhem integration method: Theory and applications