Spectral-finite element method for solving two-dimensional vorticity equations