A Z-transform matrix formulation for a tensor FDTD method