Level inversion in multiply charged ions and possible applications