Oxygen-17 nuclear quadrupole double resonance. 6. Effects of hydrogen bonding