Approximating the Riemann-Stieltjes integral via some moments of the integrand