An efficient nonmonotone trust-region method for unconstrained optimization