Quadrature Rules With Applications To Error Estimation