A multigrid semi-implicit line-method for viscous incompressible and low Mach number compressible flows