Diamagnetism and the hydrogen bond