Hydration and thermodynamic equilibrium of non-ionic surfactant in solution