Modelling the stability of rock slopes