https://123dok.net/document/yj7m3w85-regime-switching-model-evaluate-bonds-quadratic-structure-rates.html