Recursion operators and hierarchies of $$\text{mKdV}$$ equations related to the Kac–Moody algebras $$D_4^{(1)}$$, $$D_4^{(2)}$$, and $$D_4^{(3)}$$