SMS dit: Thermodynamics of pharmaceutical systems