Quadrature rules and distribution of points on manifolds