The infrared spectra of hydrogen-bonded crystals