Finite element vorticity-based methods for the solution of the incompressible and compressible Navier-Stokes equations