High‐resolution x‐ray spectrometer for an electron beam ion trap