Spectroscopic differences between molecular (O–H ⋯ N) and ionic pair (O–⋯ H–N+) hydrogen complexes