Bearing capacity of shallow foundations near slopes: static analysis