Rock global stability estimation by three dimensional blocks formed with statistically produced joint polygons