Stability of block mattress under non-uniform flow downstream of sluice gate