Bernstein quadrature formula