Definition of factor of safety for rock blocks