The cosmological constant and black-hole thermodynamic potentials