Physics-based machine learning for enhanced drug formulation development