Calculation of the dispersion energy contribution to the solvation free energy