The interstellar medium X-ray spectrometer (IMXS)