Thermodynamics of the ferromagnetic phase transition in nearly half metallic CoS2 at high pressures