https://123dok.org/document/lzg9vk2q-applying-markov-chain-switching-model-systemic-risk-measures.html