A solid-state NMR, X-ray diffraction, and ab initio computational study of hydrogen-bond structure and dynamics of pyrazole-4-carboxylic acid chains.