Gradient-Coil Design by Simulated Annealing