A statistical measure for the repulsion of energy levels