A Micromechanical Model for Numerical Study of Rock Dilation and Ductility