Magnetization in the zig-zag layered Ising model and orthogonal polynomials