X-ray spectra of highly ionised iron and nickel atoms