Text this: A Thermodynamic Framework for the Modeling and Optimization of Crystallization Processes