Numerical inversion of probability generating functions