A nonmonotone trust region algorithm for minimization of locally lipschitzian functions