Numerical Prediction of Localized Deformation in Unstable Behavior of Geotechnical Materials