A numerical technique for the prediction of the coupled hydro­mechanical response of rock fractures