X-ray absorption spectroscopy for wire-array Z-pinches at the non-radiative stage