The relation between solvophobic effects and critical phenomena in solutions