Random particle simulation of damage and fracture in particulate or fiber-reinforced composites