Thermodynamics of nucleation in current-carrying conductors.