Grazing-incidence spectrometer for soft x-ray and extreme ultraviolet spectroscopy on the National Spherical Torus Experiment