Investigation of the radiation properties of L- and M-shell X-pinch plasma x-ray sources using a transmission grating spectrometer