Theoretical determination of the Gibbs energy of solution and transfer between immiscible solvents, with comments on the dynamics of phase transfer