The ionization equilibrium of elements between carbon and nickel