Implementation of the Critical Unstable Condition in Extended Finite-Element Analysis to Calculate the Safety Factor of a Predefined Slip Surface