Trust-region methods for the derivative-free optimization of nonsmooth black-box functions