Effect of micromechanical parameters of microstructure on compressive and tensile failure process of rock