Synergistic effect of intra- and intermolecular hydrogen bond in 2-haloethanols probed by infrared.