Approximating Distributions and Transient Probabilities by Matrix Exponential Distributions and Functions