Osmotic pressure and ionization