Applying Sanderson rules to the formation reaction of hydrogen-bonded dimers