A GPU-accelerated semi-implicit ADI method for incompressible and compressible Navier-Stokes equations