How ammonia participates in hydrogen bonding