Thermodynamics of hydrogen bonding in hydrophilic and hydrophobic media.