trapezoidal pulse