How does homeostasis relate to acids and bases?