Soft-X-ray spectra of highly charged Au ions in an electron-beam ion trap