Modeling hydration mechanisms of enzymes in nonpolar and polar organic solvents