Statistics for Optimization of power systems with voltage security constraints