Tridiagonal preconditioning for Poisson-like difference equations with flat grids: Application to incompressible atmospheric flow