Numerical quadrature and cubature