An extension of trapezoid inequality to the complex integral