Elimination of ringing effects in multiple-pulse sequences