A model for ionization balance and L-shell spectroscopy of non-LTE plasmas.