Optimal multipulse excitation determination by simulated anneling