Effect of water on the molecular structure and arrangement of nitrile-functionalized ionic liquids.