A globally convergent trust-region algorithm for unconstrained derivative-free optimization