A New Generalization of the Trapezoid Formula for n-Time Differentiable Mappings and Applications