Matrix analytic methods for computations in risk theory