Micromechanical model of rough contact between rock blocks with application to wave propagation