Bearing Capacity of Foundations near Slopes