Theoretical evidences for resonance-assisted hydrogen bonding