Wave propagations through jointed rock masses and their effects on the stability of slopes