Particle simulation of the failure process of brittle rock under triaxial compression