Simulation of the wavefront distortion and beam quality for a high-power zigzag slab laser