Generalized phase-type distributions based on multi-state systems. (2nd January 2020)