Simulated-tempering procedure for spin-glass simulations.