Thermodynamics of hydrogen bond patterns in supramolecular assemblies of water molecules.