Nonlinear stability of a laminar flow past a two-dimensional grid