Exchange integral and specific heat of the electron gas