Diffuse ionized gas in halos of spiral galaxies