Modeling the partitioning of amphiphilic molecules and co-solvents in biomembranes