Thermodynamics of the first-order valence transition in YbInCu4