Why Drugs are Weak Acids or Bases