Homeostasis: osmoregulation, pH regulation, and nitrogen excretion