Wellbore Stability Analysis by Using a Risk-Controlled Method