Time-resolved grating spectroscopy of a N capillary discharge plasma for a recombination pumped x-ray laser