Thermodynamics of solid formation in cottonseed oil