The distribution of the stochastic dominance index for risk measurement