A method for the numerical inversion of Laplace transforms