One- and two-dimensional modeling of argon K-shell emission from gas-puff Z-pinch plasmas