Studying of multi-shell gas-puff Z-pinches using x-ray spectroscopy with spatial resolution