Discrete element method: its applications in discontinuous rock systems