numerical calculation of slope stability