Gibbs thermodynamic potentials for disordered systems