Vibrational spectroscopy of HOD in liquid D 2O. III. Spectral diffusion, and hydrogen-bonding and rotational dynamics