Study of the influence of steric and electronic factors on the formation and stability of hydrogen bonding