returns rotation array along z-axis for 2d case
phi (float) – rotation angle
res – rotation array along z-axis
(2,2)-np.ndarray