Numerical quadrature by extrapolation