On the numerical evaluation of the Kummer function with complex argument by the trapezoidal rule