A limiting distribution for maxima of discrete stationary triangular arrays with an application to risk due to avalanches