Ultrafast hydrogen-bond dynamics in the infrared spectroscopy of water