A Predictive Model for the Solubility and Octanol-Water Partition Coefficient of Pharmaceuticals