Nuclear quadrupole resonance study of hydrogen bonded solid materials