Explicit solutions for queues with Hypo- or Hyper-exponential service time distribution and application to product-form approximations