Numerical inversion of the Laplace transform via fractional moments