Factors governing the influence of a first hydrogen bond on the formation of a second one by the same molecule or ion