Conditions for the Formation of Hydrogen Bonds