Solution of the incompressible Navier-Stokes equations using artificial compressibility methods