A hierarchical model of rough rock joints based on micromechanics