A New Method for Calculating Partition Coefficients of Organic Compounds