How does structure and bonding affect acid-base properties?