Automatic velocity picking by simulated annealing