An Efficient Global Optimization Algorithm with Adaptive Estimates of the Local Lipschitz Constants